<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);

String outPatientVisitInfoJson= (String)request.getAttribute("outPatientVisitInfoJson");
String success= (String)request.getAttribute("success");
%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
	<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<div class="list_NR">
	<div class="loc">
		<h3>统计报告</h3>
		<ul class="loc_loc">平均住院天数
		</ul>
	</div>

	<div class="list_con_table">
	
	<form id="infoListForm">
	<table style="width:100%;" cellpadding="0" cellspacing="0" id="table">
	<tbody>

	<tr>
		<td colspan="6" style="text-align:right;">
			<input type="button" value="保存" class="btn"  onclick="saveAvgInHospDaysInfo()"/>
		</td>
	</tr>

	
				<tr>
				<td class="tdLabel_7 ">${nowMonth}</td>
				<td class="tdLabel_8">
					<input type="text" name="monthInHospDays" class="input_box"   value="${avgInHospDaysInfo.monthInHospDays}"    title='' />
				</td>
				<td class="tdLabel_7">${preYearMonth}</td>
				<td class="tdLabel_8">
					<input type="text" name="lastYearInHospDays" class="input_box"  value="${avgInHospDaysInfo.lastYearInHospDays}" />	
				</td>

			
	
				
				<td class="tdLabel_7">${preMonth}</td>
				<td class="tdLabel_8">
					<input type="text" name="preMonthInHospDays" class="input_box"   value="${avgInHospDaysInfo.preMonthInHospDays}" />
				</td>
				
				</tr>
				
				<tr >
				 <td class="tdLabel_7">
				 	文本
				 </td>
				<td class="tdLabel_8" style="width:990px" colspan="5">
					<textarea style="width:100%;height:100px" class="input_box" name="text">${avgInHospDaysInfo.text}</textarea>
				</td>
			</tr>
			
				<tr >
				 <td class="tdLabel_7">
				 	说明
				 </td>
				<td class="tdLabel_8" style="width:990px" colspan="5">
					<textarea style="width:100%;height:100px" id="note" class="input_box" name="note">${avgInHospDaysInfo.note}</textarea>
				</td>
			</tr>
			
			
			
		</tbody>
</table>
</form>
</div>
</div>
	





<script>

       //保存
     function saveAvgInHospDaysInfo(){
	  
    	 var params = $("#infoListForm").serializeArray();
	    $.ajax({
	        type:"post",
	         data:params,
	         url:"${basePath}/report/saveAvgInHospDaysInfo",
             success:function(data){
            	 layer.alert(data.msg,{icon:1});
             }
	    });

     }
       


 

	
</script>